package com.edu.orderservice.client;

import com.edu.commonutils.user.UcenterMemberOrder;
import com.edu.orderservice.client.impl.UcenterMemberImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName UcenterMemberClient
 * @date 2022/9/26 10:47
 * @Version 1.0
 */
@Component
@FeignClient(name = "service-ucenter",fallback = UcenterMemberImpl.class)
public interface UcenterMemberClient {

    //根据token字符串获取用户信息
    @PostMapping("/ucenterservice/ucentermember/getInfoOrder/{id}")
    @ResponseBody
    public UcenterMemberOrder getInfoOrder(@PathVariable("id") String id);
}
